home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
standard
/
ldlread.z
/
ldlread
Wrap
Text File
|
1998-10-30
|
5KB
|
133 lines
LLLLDDDDLLLLRRRREEEEAAAADDDD((((3333XXXX)))) LLLLDDDDLLLLRRRREEEEAAAADDDD((((3333XXXX))))
NNNNAAAAMMMMEEEE
ldlread, ldlinit, ldlitem - manipulate line number entries of a common
object file function
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
####iiiinnnncccclllluuuuddddeeee <<<<ffffiiiilllleeeehhhhddddrrrr....hhhh>>>>
####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyymmmmssss....hhhh>>>>
####iiiinnnncccclllluuuuddddeeee <<<<llllddddffffccccnnnn....hhhh>>>>
iiiinnnntttt llllddddllllrrrreeeeaaaadddd ((((ldptr, fcnindx, linenum, linent))))
LLLLDDDDFFFFIIIILLLLEEEE ****ldptr;;;;
lllloooonnnngggg fcnindx;;;;
uuuunnnnssssiiiiggggnnnneeeedddd sssshhhhoooorrrrtttt linenum;;;;
LLLLIIIINNNNEEEERRRR ****linent;;;;
iiiinnnntttt llllddddlllliiiinnnniiiitttt ((((ldptr, fcnindx))))
LLLLDDDDFFFFIIIILLLLEEEE ****ldptr;;;;
lllloooonnnngggg fcnindx;;;;
iiiinnnntttt llllddddlllliiiitttteeeemmmm ((((ldptr, linenum, linent))))
LLLLDDDDFFFFIIIILLLLEEEE ****ldptr;;;;
uuuunnnnssssiiiiggggnnnneeeedddd sssshhhhoooorrrrtttt linenum;;;;
LLLLIIIINNNNEEEERRRR ****linent;;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_l_d_l_r_e_a_d searches the line number entries of the common object file
currently associated with _l_d_p_t_r. _l_d_l_r_e_a_d begins its search with the line
number entry for the beginning of a function and confines its search to
the line numbers associated with a single function. The function is
identified by _f_c_n_i_n_d_x, which is the index of its local symbols entry in
the object file symbol table. _l_d_l_r_e_a_d reads the entry with the smallest
line number equal to or greater than _l_i_n_e_n_u_m into _l_i_n_e_n_t.
_l_d_l_i_n_i_t and _l_d_l_i_t_e_m together do exactly the same function as _l_d_l_r_e_a_d.
After an initial call to _l_d_l_r_e_a_d or _l_d_l_i_n_i_t, _l_d_l_i_t_e_m can be used to
retrieve a series of line number entries associated with a single
function. _l_d_l_i_n_i_t simply finds the line number entries for the function
identified by _f_c_n_i_n_d_x. _l_d_l_i_t_e_m finds and reads the entry with the
smallest line number equal to or greater than _l_i_n_e_n_u_m into _l_i_n_e_n_t.
_l_d_l_r_e_a_d, _l_d_l_i_n_i_t, and _l_d_l_i_t_e_m each return either SSSSUUUUCCCCCCCCEEEESSSSSSSS or FFFFAAAAIIIILLLLUUUURRRREEEE. If
no line number entries exist in the object file, if _f_c_n_i_n_d_x does not
index a function entry in the symbol table, or if it finds no line number
equal to or greater than _l_i_n_e_n_u_m, _l_d_l_r_e_a_d fails. If no line number
entries exist in the object file or if _f_c_n_i_n_d_x does not index a function
entry in the symbol table, _l_d_l_i_n_i_t fails. If it finds no line number
equal to or greater than _l_i_n_e_n_u_m, _l_d_l_i_t_e_m fails.
PPPPaaaaggggeeee 1111
LLLLDDDDLLLLRRRREEEEAAAADDDD((((3333XXXX)))) LLLLDDDDLLLLRRRREEEEAAAADDDD((((3333XXXX))))
The programs must be loaded with the object file access routine library
lllliiiibbbbmmmmlllldddd....aaaa.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
ldclose(3X), ldopen(3X), ldtbindex(3X), ldfcn(4).
PPPPaaaaggggeeee 2222